import http from "@/utils/http";
/**
 * 商品详情
 * @param {Number} id 商品id
 * @returns 
 */
export const getGoodsById = (id) => {
    return http({
        url: "/goods",
        data: { id }
    })
}
/**
 * 同类推荐
 * @param {object} data 请求参数
 * @returns 
 */
export const getGoodsRelevant = (data) => {
    return http({
        url: '/goods/relevant',
        data,
    })
}
